package com.moonshineproject.plugin.menu
{
	import com.moonshineproject.plugin.menu.renderers.MenuItemRenderer;
	import com.moonshineproject.plugin.menu.renderers.MenuRenderer;

	import flash.events.Event;

	public class MenuModelEvent extends Event
	{

		public static const TOP_LEVEL_MENU_CHANGED:String = "topLevelMenuChanged";
		public static const ACTIVE_MENU_ITEM_RENDERER_CHANGED:String = "activeMenuItemRendererChanged"
		public static const MENU_OPENED:String = "menuOpened";
		public static const MENU_CLOSED:String = "menuClosed";

		public static const ACTIVE_ALL_MENUS:String = "activeAllMenus";




		private var _renderer:MenuItemRenderer
		private var _menu:MenuRenderer

		public function MenuModelEvent(type:String,
			bubbles:Boolean=false, cancelable:Boolean=false,
			menu:MenuRenderer=null,
			renderer:MenuItemRenderer=null)
		{
			super(type, bubbles, cancelable);
			_renderer = renderer
			_menu = menu;
		}

		public function get menu():MenuRenderer
		{
			return _menu;
		}

		public function get renderer():MenuItemRenderer
		{
			return _renderer;
		}
	}
}